<script setup>
import { RouterView } from 'vue-router'
</script>
<template>
<!--  <RouterView />-->
  <RouterView v-slot="{ Component, route }">
    <KeepAlive>
      <Component v-if="route.meta.keepAlive" :is="Component" :key="route.path"></Component>
    </KeepAlive>
    <Component v-if="!route.meta.keepAlive" :is="Component"></Component>
  </RouterView>
</template>
